using System;

namespace RawSocketEx
{
    public class PacketArrivedEventArgs : EventArgs
    {
        public PacketArrivedEventArgs()
        {
            Protocol = "";
            DestinationPort = "";
            OriginationPort = "";
            DestinationAddress = "";
            OriginationAddress = "";
            IpVersion = ""; 

            PacketLength = 0;
            MessageLength = 0;
            HeaderLength = 0;

            ReceiveBuffer = null;
            IpHeaderBuffer = null;
            MessageBuffer = null;
        }

        public string Protocol { get; set; }

        public string DestinationPort { get; set; }

        public string OriginationPort { get; set; }

        public string DestinationAddress { get; set; }

        public string OriginationAddress { get; set; }

        public string IpVersion { get; set; }

        public uint PacketLength { get; set; }

        public uint MessageLength { get; set; }

        public uint HeaderLength { get; set; }

        public byte[] ReceiveBuffer { get; set; }

        public byte[] IpHeaderBuffer { get; set; }

        public byte[] MessageBuffer { get; set; }
    }
}